package com.falcon.core.domain.generator;

import com.swan.mybatis.mapper.field.IAutoFieldGenerator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author zongf
 * @since 2022-12-03
 **/
@Component
public class PoCreatorGenerator implements IAutoFieldGenerator {

    @Autowired
    private IUserNameProvider userNameProvider;

    @Override
    public Object generateValue() {
        return this.userNameProvider.getCurrentLoginUserName();
    }
}
